<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Person.aspx.cs" Inherits="Person" Title="Untitled Page" %>
<%@ Register Assembly="Decav.Gatsb.Web" Namespace="Decav.Gatsb.Web.Controls" TagPrefix="gatsb" %>
<%@ Register Src="~/UserTileControl.ascx" TagPrefix="decavuc" TagName="UserTile" %>
<%@ Register Src="~/SetLocationWidget.ascx" TagName="SetLocationWidget" TagPrefix="decavuc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderPlaceholder" Runat="Server">
    <link rel="stylesheet" type="text/css" href="Styles/TwoColumnRightStyle.css" />
    <link rel="stylesheet" type="text/css" href="Styles/ProfileStyle.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageBodyPlaceholder" Runat="Server">
    <div runat="server" id="noPermissionsProfilePage">
        <h1><%= GatsbUser.Name.ToString() %></h1>
        <div class="StatusRibbon" runat="Server" id="noPermissionsStatusDiv">
            You do not have permissions to view this persons profile.
        </div>
        <decavuc:UserTile runat="server" id="noPermissionsTile" />
    </div>
    <div runat="server" id="profilePage">
        <h1><%= GatsbUser.Name.ToString() %></h1>
        <gatsb:NotLoggedInRibbonControl runat="server" />
        <div visible="false" runat="Server" id="relationshipStatusDiv" class="StatusRibbon" style="margin-top: -1px;">
        </div>
        
        <div class="ColumnRight" style="margin-top:15px;">
            <div style="text-align:center">
                <div class="ProfileUserImage">
                    <gatsb:UserImage Size="Medium" alt="Profile" runat="server" id="profileImage" src="#" />
                </div>
            </div>
            <h3>Current Location</h3>
            <div>
                <decavuc:SetLocationWidget runat="server" id="setMyLocation" />
                <span runat="server" id="currentLocationSpan">
                    <%= GatsbUser.Name.FirstName %> is currently at <gatsb:GatsbLocationLink runat="server" id="locationLink" />.
                </span>   
                <span runat="server" id="noLocationSpan">
                    <%= GatsbUser.Name.FirstName %> has not checked in to Gatsb recently.
                </span>
                
            </div>
            <h3>About</h3>
            <p>
                <asp:Literal runat="server" ID="aboutTextLiteral" />
            </p>
            
            <ul class="PersonMenu" id="personMenu" runat="server">
                <li><a href="<%= System.String.Format("Friends.aspx?id={0}", GatsbUser.Id )%>"><%= DisplayName %> Friends</a></li>
                <li><a href="<%= System.String.Format("Places.aspx?user={0}", GatsbUser.Id )%>"><%= DisplayName %> Recent Places</a></li>
            </ul>
            <div class="PersonMenu" style="padding-top:10px;" runat="server" id="noPersonMenuDiv">
                You must <asp:LinkButton runat="server" ID="loginLink" OnClick="LoginLink_Click">login</asp:LinkButton>
                to view <%= GatsbUser.Name.FirstName %>'s friends and other features.
            </div>
        </div>
        <div class="ColumnMain">
            <h3>Events</h3>
            <gatsb:HistoricalLocationRepeater runat="server" ID="eventsRepeater" CssClass="HistoricalEventList" />
            <div runat="server" id="noEventsDiv" class="StatusRibbon"></div>
        </div>
    </div>
    
</asp:Content>

